entry: Use markdown for css tree
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2021 00:46:32 +0000 (19:46 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:35 +0000 (16:37 +0000)
gtk/gtkentry.c

index ef295fef58087e5c13390d856f3a9384397f6671..8a1262bf14d16c3ff932c68896fa48bd21c4a8ad 100644 (file)
  *
  * # CSS nodes
  *
- * |[<!-- language="plain" -->
+ * ```
  * entry[.flat][.warning][.error]
  * ├── text[.readonly]
  * ├── image.left
  * ├── image.right
  * ╰── [progress[.pulse]]
- * ]|
+ * ```
  *
  * `GtkEntry` has a main node with the name entry. Depending on the properties
  * of the entry, the style classes .read-only and .flat may appear. The style
  * this label.
  *
  * An example of a UI definition fragment specifying Pango attributes:
- * |[
+ * ```xml
  * <object class="GtkEnry">
  *   <attributes>
  *     <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
  *     <attribute name="background" value="red" start="5" end="10"/>
  *   </attributes>
  * </object>
- * ]|
+ * ```
  *
  * The start and end attributes specify the range of characters to which the
  * Pango attribute applies. If start and end are not specified, the attribute